#include <stdio.h>
#include "lib.h"
void Output(Schedule out)
{
	int i;
	FILE *f;
	//mo file
	f = fopen("CPUO.txt","wt");
	//ghi mang dinh thoi
	for(i=0;i<out.Sn;i++)
	{
		fprintf(f,"%d ",out.CPU[i]);
	}
	fprintf(f,"\n");
	for(i=0;i<out.Sn;i++)
	{
		fprintf(f,"%d ",out.Sa[i]);
	}
	fprintf(f,"\n");
	
	for(i=0;i<out.Wn;i++)
	{
		fprintf(f,"%d ",out.Wa[i]);
	}
	fprintf(f,"\n");
	fprintf(f,"%.3f ",out.Awt);
}
